package com.hdsx.design.softdesign.responsibility;

/**
 * @author 占贤银
 * time 2024/8/22 17:02
 * description 生命之灯因热情而点燃，生命之舟因拼搏而前行
 */
public class Course {

    public void study(String courseName) {
        if ("直播课".equals(courseName)) {
            System.out.println("不能快进！");
        } else {
            System.out.println("可以任意来回的播放！");
        }
    }

    public static void main(String[] args) {
        Course course = new Course();
        course.study("直播课");
        course.study("录播课");
    }
}